package com.mapper;

import com.beans.Forum;
import com.vo.ForumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ForumMapper {

    List<ForumVo> allForum();

    int addForum(@Param("entity")Forum forum);

    ForumVo selectForumById(@Param("id")int id);

    List<ForumVo> selectByTitle(@Param("title") String title);

    int deleteForum(@Param("id")int id);

    int updateForum(@Param("entity")Forum forum);


}
